package cn.com.bluemoon.apollo.apollohelloworld;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@SpringBootApplication
@EnableApolloConfig
@RestController
public class ApolloHelloworldApplication {

	public static void main(String[] args) {
		SpringApplication.run(ApolloHelloworldApplication.class, args);
	}

	@RequestMapping(value = "/")
	String index(){
		return "Hello apollo Spring Boot!";
	}


}
